#!/usr/bin/env node 
const fs=require('fs');
const src=process.argv[2];
fs.watch(src,(eventType,src)=>{
console.log(`${src}进行了${eventType}`);
process.stdin.resume();
process.on('SIGINT',function(){
console.log("程序将要结束运行")  
 
  setTimeout(function(){
    process.exit();
  },5000)
})}
